﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;

namespace Client
{
    public static class ClientMain
    {
        [STAThread]
        static void Main(String[] args)
        {
            if (args.Length < 2)
            {
                Console.WriteLine("Not enough arguments provided. ENTER to quit.");
                Console.ReadLine();
                return;
            }

            String clientId = args[0];
            int port = Int32.Parse(args[1]);

            bool gui = true;
            if (args.Length > 2)
            {
                if(args[2] == "noGUI")
                    gui = false;
            }

            Client client = new Client(clientId, gui);
            client.Run(port);
        }
    }
}
